home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 August (Alt) / CHIP 2005-08.1.iso / program / shareware / Flash_Oyunlar.exe / bumperball.swf / scripts / DefineButton2_31 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-07-13  |  889 b   |  28 lines

  1. on(release){
  2.    if(_root.soundControlCounter == 1)
  3.    {
  4.       _root.global_sound.setVolume(100);
  5.       _root.introLoopVolume = 0;
  6.       _root.introLoop.setVolume(_root.introLoopVolume);
  7.       _root.ingameLoopSoundVolume = 0;
  8.       _root.ingameLoopSound.setVolume(_root.ingameLoopSoundVolume);
  9.    }
  10.    if(_root.soundControlCounter == 2)
  11.    {
  12.       _root.global_sound.setVolume(0);
  13.    }
  14.    if(_root.soundControlCounter == 3)
  15.    {
  16.       _root.global_sound.setVolume(100);
  17.       _root.introLoop.setVolume(_root.defaultIntroLoopVolume);
  18.       _root.ingameLoopSound.setVolume(_root.defautlIngameLoopSoundVolume);
  19.    }
  20.    _root.soundControlCounter = _root.soundControlCounter + 1;
  21.    if(_root.soundControlCounter >= 4)
  22.    {
  23.       _root.soundControlCounter = 1;
  24.    }
  25.    this.text.gotoAndStop(_root.soundControlCounter);
  26.    this.gotoAndStop(_root.soundControlCounter);
  27. }
  28.